import { createRouter, createWebHistory } from 'vue-router'
// import Home from '@/views/home/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/pages/LayoutContainer',
    },
    {
      path: '/pages',
      component: () => import('@/views/home/index.vue'),
      children: [
        {
          path: 'LayoutContainer',
          component: () => import('@/views/pages/LayoutContainer.vue'),
        },
        {
          path: 'fare',
          component: () => import('@/views/pages/Fare.vue'),
        },
        {
          path: 'order',
          component: () => import('@/views/pages/Order.vue'),
        },
      ],
    },
  ],
})

export default router
